home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / gfx / misc / gnuplot-src.lha / gnuplot-3.7.1src / gnuplot-3.7.1.lha / gnuplot-3.7.1 / win / wtext.h < prev   
Encoding:
C/C++ Source or Header  |  1998-06-30  |  3.3 KB  |  102 lines

  1. /*
  2.  * $Id: w    )Øx
  3. #defin8/06/30 16:46:21 lhecking Exp $
  4.  */
  5.  
  6. /* GNUPLOT - win/wtext.h */
  7.  
  8. /*[
  9.  * Copyright 1992 - 1993, 1998   Russell Lang
  10.  *
  11.  * Permission to use, copy, and distribute this software and its
  12.  * documentation for any purpose with or without fee is hereby granted,
  13.  * provided that the above copyright notice appear in all copies and
  14.  * that both that copyright notice and this permission notice appear
  15.  * in supporting documentation.
  16.  *
  17.  * Permission to modify the software is granted, but not the right to
  18.  * distribute the complete modified source code.  Modifications are to
  19.  * be distributed as patches to the released version.  Permission to
  20.  * distribute binaries produced by compiling modified sources is granted,
  21.  * provided you
  22.  *   1. distribute the corresponding source modifications from the
  23.  *    released version in the form of a patch file along with the binaries,
  24.  *   2. add special version identification to distinguish your version
  25.  *    in addition to the base release version number,
  26.  *   3. provide your name and address as the primary contact for the
  27.  *    support of your modified version, and
  28.  *   4. retain our contact information in regard to use of the base
  29.  *    software.
  30.  * Permission to distribute the released version of the source code along
  31.  * with corresponding source modifications in the form of a patch file is
  32.  * granted with same provisions 2 through 4 for binary distributions.
  33.  *
  34.  * This software is provided "as is" without express or implied warranty
  35.  * to the extent permitted by applicable law.
  36. ]*/
  37.  
  38. /* redefine functions that can talk to tty devices, to use 
  39.  * implementation in winmain.c/wgnuplot.dll */
  40.  
  41. #define kbhit()  MyKBHit()
  42. #define getche() MyGetChE()
  43. #define getch()  MyGetCh()
  44. #define putch(ch)  MyPutCh(ch)
  45.  
  46. #define fgetc(file) MyFGetC(file)
  47. #undef  getchar
  48. #define getchar()   MyFGetC(stdin)
  49. #undef  getc
  50. #define getc(file)  MyFGetC(file)
  51. #define fgets(str,sz,file)  MyFGetS(str,sz,file)
  52. #define gets(str)          MyGetS(str)
  53.  
  54. #define fputc(ch,file) MyFPutC(ch,file)
  55. #undef  putchar
  56. #define putchar(ch)    MyFPutC(ch,stdout)
  57. #undef  putc
  58. #define putc(ch,file)  MyFPutC(ch,file)
  59. #define fputs(str,file)  MyFPutS(str,file)
  60. #define puts(str)        MyPutS(str)
  61.  
  62. #define fprintf MyFPrintF
  63. #define printf MyPrintF
  64.  
  65. #define fwrite(ptr, size, n, stream) MyFWrite(ptr, size, n, stream)
  66. #define fread(ptr, size, n, stream) MyFRead(ptr, size, n, stream)
  67.  
  68. /* now cause errors for some unimplemented functions */
  69.  
  70. #define vprintf dontuse_vprintf
  71. #define vfprintf dontuse_vfprintf
  72. #define fscanf dontuse_fscanf
  73. #define scanf dontuse_scanf
  74. #define clreol dontuse_clreol
  75. #define clrscr dontuse_clrscr
  76. #define gotoxy dontuse_gotoxy
  77. #define wherex dontuse_wherex
  78. #define wherey dontuse_wherey
  79. #define cgets dontuse_cgets
  80. #define cprintf dontuse_cprintf
  81. #define cputs dontuse_cputs
  82. #define cscanf dontuse_cscanf
  83. #define ungetch dontuse_ungetch
  84.  
  85. /* now for the prototypes */
  86.  
  87. int MyPutCh(int ch);
  88. int MyKBHit(void);
  89. int MyGetCh(void);
  90. int MyGetChE(void);
  91. int MyFGetC(FILE *file);
  92. char * MyGetS(char *str);
  93. char * MyFGetS(char *str, unsigned int size, FILE *file);
  94. int MyFPutC(int ch, FILE *file);
  95. int MyFPutS(char *str, FILE *file);
  96. int MyPutS(char *str);
  97. int MyFPrintF(FILE *file, char *fmt, ...);
  98. int MyPrintF(char *fmt, ...);
  99. size_t MyFWrite(const void *ptr, size_t size, size_t n, FILE *stream);
  100. size_t MyFRead(void *ptr, size_t size, size_t n, FILE *stream);
  101.  
  102.